package day06.test2;

import day06.test3.test3;

import java.util.Arrays;

public class test2 {
    public static void main(String[] args) {
        //数组排序
        int[] arr={123,345,21,0,98};
        //冒泡排序
        for(int j = 0;j<4;j++)
        {

            for(int i = 0;i<arr.length-1-j;i++)
            {
                if(arr[i] < arr[i+1]) {
                    int tmp = arr[i];
                    arr[i] = arr[i + 1];
                    arr[i + 1] = tmp;
                }
            }
        }
        System.out.println(Arrays.toString(arr));
        test3.hi();
    }
}
